home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1994 April / Inside Multimedia CD-ROM (April 1994).iso / prg / gs / gssource.exe / MAINT.MAK < prev    next >
Encoding:
Text File  |  1992-08-24  |  7.8 KB  |  234 lines

  1. #    Copyright (C) 1991, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # Auxiliary MS-DOS makefile for maintenance operations.
  21.  
  22. # This file pertains to Aladdin Enterprises maintenance operations,
  23. # and is unlikely to be useful to users.
  24.  
  25. DRIVE=a:
  26. LABEL=GS_072792
  27. VERIFY=
  28.  
  29. # Targets:
  30. #    xmit -- make the .BE files for Kermit transmission
  31. #    xfonts -- make the .BE files for the fonts
  32. #    xfer -- make a diskette for transferring files to the Sun
  33. #    release -- make the .BE files for a release
  34. #    disks -- make the ZIP files for MS-DOS filesets
  35. # Remember to erase *.zip / *.z / *.be, if needed, before running these.
  36.  
  37. # ---------------- Convert Windows icons ----------------
  38.  
  39. gsgraph.icx: gsgraph.uue
  40.     eadcode / gsgraph.uue gsgraph.ico
  41.     od -o gsgraph.icx -H gsgraph.ico
  42.  
  43. gstext.icx: gstext.uue
  44.     eadcode / gstext.uue gstext.ico
  45.     od -o gstext.icx -H gstext.ico
  46.  
  47. # ---------------- Make files for Kermit transmission ----------------
  48.  
  49. TARS=tar1.be tar2.be tar3a.be tar3b.be tar3c.be tar4a.be tar4b.be tar5.be tar6.be tar7.be
  50.  
  51. xmit: $(TARS)
  52.  
  53. xfonts: tar8.be
  54.  
  55. xfer: tar1.z tar2.z tar3a.z tar3b.z tar3c.z tar4a.z tar4b.z \
  56.   tar5.z tar6.z tar7.z
  57.     @echo ---------------- Insert diskette:
  58.     @command /c pause
  59.     xcopy tar_x.* a:
  60.     xcopy tar*.z a:
  61.  
  62. release: $(TARS) tar0.be
  63.  
  64. # The dependency lists for the .be files should be much longer!
  65.  
  66. .z.be:
  67.     bed $*.z $*.be
  68.     erase $*.z
  69.  
  70. tar0.z: gs.exe
  71.     @if not exist gs386.exe echo gs386.exe does not exist, do you want to proceed?
  72.     @if not exist gs386.exe pause
  73.     @if not exist gswin.exe echo gswin.exe does not exist, do you want to proceed?
  74.     @if not exist gswin.exe pause
  75.     tar -b1 -cf _temp_.t -uexe gs*.exe
  76.     compress -i _temp_.t
  77.     if exist tar0.z erase tar0.z
  78.     rename _temp_.txz tar0.z
  79.  
  80. tar1.z: \cp.bat \rm.bat bdftops.bat font2c.bat pfbtogs.bat
  81.     copy \cp.bat
  82.     copy \rm.bat
  83.     tar -b1 -cf _temp_.t -ubat g*.asm i*.asm gs*.bat cp.bat bdftops.bat font2c.bat pfbtogs.bat showpbm.bat rm.bat
  84.     compress -i _temp_.t
  85.     if exist tar1.z erase tar1.z
  86.     rename _temp_.txz tar1.z
  87.  
  88. tar2.z: ansi2knr.c echogs.c ega.c uniq.c
  89.     tar -b1 -cf _temp_.t ansi2knr.c echogs.c ega.c uniq.c
  90.     compress -i _temp_.t
  91.     if exist tar2.z erase tar2.z
  92.     rename _temp_.txz tar2.z
  93.  
  94. tar3a.z: gs.c
  95.     tar -b1 -cf _temp_.t gs*.c
  96.     compress -i _temp_.t
  97.     if exist tar3a.z erase tar3a.z
  98.     rename _temp_.txz tar3a.z
  99.  
  100. tar3b.z: gxfill.c
  101.     tar -b1 -cf _temp_.t gx*.c
  102.     compress -i _temp_.t
  103.     if exist tar3b.z erase tar3b.z
  104.     rename _temp_.txz tar3b.z
  105.  
  106. tar3c.z: gconfig.c genarch.c
  107.     tar -b1 -cf _temp_.t gdev*.c gp_*.c gconfig.c genarch.c
  108.     compress -i _temp_.t
  109.     if exist tar3c.z erase tar3c.z
  110.     rename _temp_.txz tar3c.z
  111.  
  112. tar4a.z: interp.c stream.c turboc.cfg gs.def history.doc gstext.icx gs.rc
  113.     tar -b1 -cf _temp_.t i*.c s*.c turboc.cfg gs.def *.doc *.icx gs.rc
  114.     compress -i _temp_.t
  115.     if exist tar4a.z erase tar4a.z
  116.     rename _temp_.txz tar4a.z
  117.  
  118. tar4b.z: zarith.c
  119.     tar -b1 -cf _temp_.t z*.c
  120.     compress -i _temp_.t
  121.     if exist tar4b.z erase tar4b.z
  122.     rename _temp_.txz tar4b.z
  123.  
  124. tar5.z: gs.h gs.mak
  125.     tar -b1 -cf _temp_.t *.h *.mak *.man *.sh *.tr tar_*.
  126.     compress -i _temp_.t
  127.     if exist tar5.z erase tar5.z
  128.     rename _temp_.txz tar5.z
  129.  
  130. tar6.z: gs_init.ps uglyr.gsf
  131.     tar -b1 -cf _temp_.t *.ps ugly*.*
  132.     compress -i _temp_.t
  133.     if exist tar6.z erase tar6.z
  134.     rename _temp_.txz tar6.z
  135.  
  136. tar7.z: fontmap copying news readme bdftops font2c pfbtogs ccgs
  137.     tar -b1 -cf _temp_.t fontmap copying news readme bdftops font2c pfbtogs showpbm gs*. ccgs
  138.     compress -i _temp_.t
  139.     if exist tar7.z erase tar7.z
  140.     rename _temp_.txz tar7.z
  141.  
  142. tar8.z: fonts\bchr.gsf fonts\hrsy_r.gsf
  143.     tar -b1 -cf _temp_.t fonts/*.gsf
  144.     compress -i _temp_.t
  145.     if exist tar8.z erase tar8.z
  146.     rename _temp_.txz tar8.z
  147.  
  148. # ---------------- Make MS-DOS diskette sets ----------------
  149.  
  150. allzips: gsexe.zip gsfiles.zip gssrc1.zip gssrc2.zip \
  151.   gsfonts1.zip gsfonts2.zip gsfonts3.zip gsfonts4.zip
  152.  
  153. zips: gsexe.zip gsfiles.zip gssrc1.zip gssrc2.zip
  154.     @echo ---------------- Done. ----------------
  155.  
  156. disks:
  157.     make disk1hd
  158.     make disk2hd
  159.     make disk3hd
  160.     @echo ---------------- Done. ----------------
  161.  
  162. # ------ Here are the ZIP files that go onto the diskettes. ------
  163.  
  164. gsexe.zip: gs.exe
  165.     @if not exist gs386.exe echo gs386.exe does not exist, do you want to proceed?
  166.     @if not exist gs386.exe pause
  167.     @if not exist gswin.exe echo gswin.exe does not exist, do you want to proceed?
  168.     @if not exist gswin.exe pause
  169.     if exist gsexe.zip erase gsexe.zip
  170.     if exist gs386.exe pkzip gsexe.zip gs*.exe \watc\bin\dos4gw.exe
  171.     if not exist gs386.exe pkzip gsexe.zip gs*.exe
  172.  
  173. gsfiles.zip: bdftops.bat
  174.     if exist _temp_.zip erase _temp_.zip
  175.     pkzip _temp_.zip gs*.bat bdftops.bat font2c.bat pfbtogs.bat showpbm.bat *.doc
  176.     pkzip -a _temp_.zip *.ps fontmap copying news readme bdftops font2c pfbtogs showpbm
  177.     pkzip -d _temp_.zip q* q*.* t.* comp1.*
  178.     if exist gsfiles.zip erase gsfiles.zip
  179.     rename _temp_.zip gsfiles.zip
  180.  
  181. gssrc1.zip: ansi2knr.c
  182.     if exist _temp_.zip erase _temp_.zip
  183.     pkzip _temp_.zip \rm.bat \cp.bat
  184.     pkzip -a _temp_.zip g*.asm i*.asm
  185.     pkzip -a _temp_.zip ansi2knr.c echogs.c ega.c uniq.c turboc.cfg gs.def *.icx gs.rc
  186.     pkzip -a _temp_.zip *.h *.mak *.man *.sh *.tr tar_*. ugly*.*
  187.     pkzip -a _temp_.zip gs*. ccgs
  188.     pkzip -d _temp_.zip arch.h gconfig.h obj*.tr lib*.tr _temp*.*
  189.     pkzip -d _temp_.zip ugly*.bdf libc*.tr q* q*.* t.* comp1.*
  190.     if exist gssrc1.zip erase gssrc1.zip
  191.     rename _temp_.zip gssrc1.zip
  192.  
  193. gssrc2.zip: gs.c
  194.     if exist _temp_.zip erase _temp_.zip
  195.     pkzip _temp_.zip g*.c i*.c s*.c z*.c
  196.     pkzip -d _temp_.zip comp1.*
  197.     if exist gssrc2.zip erase gssrc2.zip
  198.     rename _temp_.zip gssrc2.zip
  199.  
  200. gsfonts1.zip: fonts\phvr.gsf fonts\pncr.gsf fonts\pplr.gsf
  201.     if exist _temp_.zip erase _temp_.zip
  202.     pkzip _temp_.zip fonts\ph*.* fonts\pn*.* fonts\pp*.*
  203.     if exist gsfonts1.zip erase gsfonts1.zip
  204.     rename _temp_.zip gsfonts1.zip
  205.  
  206. gsfonts2.zip: fonts\bchr.gsf fonts\cyr.gsf fonts\pagk.gsf fonts\pbkd.gsf
  207.     if exist _temp_.zip erase _temp_.zip
  208.     pkzip _temp_.zip fonts\b*.* fonts\cy*.* fonts\pa*.* fonts\pb*.*
  209.     if exist gsfonts2.zip erase gsfonts2.zip
  210.     rename _temp_.zip gsfonts2.zip
  211.  
  212. gsfonts3.zip: fonts\psyr.gsf fonts\ptmr.gsf fonts\pzdr.gsf fonts\zcr.gsf
  213.     if exist _temp_.zip erase _temp_.zip
  214.     pkzip _temp_.zip fonts\ps*.* fonts\pt*.* fonts\pz*.* fonts\z*.*
  215.     if exist gsfonts3.zip erase gsfonts3.zip
  216.     rename _temp_.zip gsfonts3.zip
  217.  
  218. gsfonts4.zip: fonts\ncrr.gsf fonts\putr.gsf fonts\hrsy_r.gsf
  219.     if exist _temp_.zip erase _temp_.zip
  220.     pkzip _temp_.zip fonts\n*.gsf fonts\pu*.* fonts\h*.gsf
  221.     if exist gsfonts4.zip erase gsfonts4.zip
  222.     rename _temp_.zip gsfonts4.zip
  223.  
  224. # ------ Now the actual contents of the diskettes. ------
  225.  
  226. disk1hd: readme.1st gsexe.zip gsfiles.zip
  227.     @askdisk 1 $(DRIVE) $(LABEL)_1 $(VERIFY) readme.1st \utils\pkunzip.exe gsexe.zip gsfiles.zip
  228.  
  229. disk2hd: gssrc1.zip gssrc2.zip gsfonts1.zip
  230.     @askdisk 2 $(DRIVE) $(LABEL)_2 $(VERIFY) gssrc1.zip gssrc2.zip gsfonts1.zip
  231.  
  232. disk3hd: gsfonts2.zip gsfonts3.zip gsfonts4.zip
  233.     @askdisk 3 $(DRIVE) $(LABEL)_3 $(VERIFY) gsfonts2.zip gsfonts3.zip gsfonts4.zip
  234.